﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8" />
    <title>SSO </title>
    <script src="../../WF/Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../../WF/Scripts/jquery-1.11.0.min.js" type="text/javascript"></script>
    <script src="../../WF/Scripts/config.js" type="text/javascript"></script>
    <link href="../../WF/Style/skin/css/login.css" type="text/css" rel="stylesheet" />
    <script src="../../WF/Comm/Gener.js" type="text/javascript"></script>
    <script src="../../WF/Comm/JS/validation.js"></script>
    <base target="_self" />
    <script type="text/javascript">
        var name = null;

        //初始化页面函数.....
        $(function () {
            var httphandler = new HttpHandler("BP.WF.HttpHandler.WF");
            httphandler.AddUrlData();
            var data = httphandler.DoMethodReturnString("PortSaaS_Init");
            if (data.indexOf('err@') == 0) {
                alert(data);
                return;
            }

            //转入到指定的页面上去.
            data = data.replace('url@', '');
            if (data.indexOf("./") == -1 && data.indexOf("../") == -1)
                data = basePath + data;
            var token = GetQueryStringByUrl(data, "Token");
            if (!!token)
                localStorage.setItem("Token", token);
            window.location.href = data;
            return;
        });
    </script>
    <script src="../../Scripts/jquery-1.11.0.min.js"></script>
</head>

<body class="login-bg">

    <form id="cc">
        <br />
        <fieldset>
            <legend> 参数说明</legend>
            <ul>
                <li>  调用格式： http://xxx.xxx.xxxx:8085/Portal/SaaS/Port.htm?Token=xxxx&OrgNo=WZ&DoWhat=xxx&xx=xxx </li>
                <li>Token 是必选参数,是用户的token. </li>
                <li>OrgNo 是必选参数,是组织编号 </li>
                <li>DevType 设备类型: PC、Mobile 默认未PC </li>

                <li>DoWhat 是执行内容：比如: Home、Todolist、 Runing 是转入不同的页面上去. </li>
                <li> 格式1: http://xxx.xxx.xxxx:8085/Portal/SaaS/Port.htm?Token=xxxx&OrgNo=WZ&DoWhat=Home&DevType=Mobile </li>
                <li> 解释: 转入到手机端的home页面.</li>
                <li> 格式2: http://xxx.xxx.xxxx:8085/Portal/SaaS/Port.htm?Token=xxxx&OrgNo=WZ&DoWhat=Todolist&DevType=Mobile </li>
                <li> 解释: 转入到手机端的待办页面.</li>
                <li> 格式2: http://xxx.xxx.xxxx:8085/Portal/SaaS/Port.htm?Token=xxxx&OrgNo=WZ&DoWhat=StartFlow&DevType=Mobile&FlowNo=009&Tel=xxx&Addr=xxx </li>
                <li> 解释: 启动流程002， 并传入参数.</li>
                <li> 格式2: http://xxx.xxx.xxxx:8085/Portal/SaaS/Port.htm?Token=xxxx&OrgNo=WZ&DoWhat=Runing&DevType=PC </li>
                <li> 解释: 转入到手机端的在途页面.</li>
                <li> 格式2: http://xxx.xxx.xxxx:8085/Portal/SaaS/Port.htm?Token=xxxx&OrgNo=WZ&DoWhat=Start&DevType=PC </li>
                <li> 解释: 转入到手机端的在途页面.</li>
            </ul>
        </fieldset>

    </form>

</body>
</html>